import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import Home from "../page/home/Home";
// 路由
const router=createBrowserRouter([
    {
        // 一级路由
        path:'/',
        element:<App></App>,
        // 二级路由
        children:[
            {
                path:'home',
                element:<Home></Home>
            },
            {index:true,element:<Home></Home>}
        ]
    }
])

export default router